#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include <QMessageBox>
#include <QCloseEvent>
#include <QMediaplayer>
#include <QMediaPlaylist>
#include <QTimer>;
#include "myscene.h"
#include "score.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    void closeEvent(QCloseEvent *event);
signals:


private slots:
    void updatascore();
    void clearscore();
    void playslot();
    void finshed_slot();
private:
    Ui::MainWindow *ui;
    myScenr *sc;
    score*s;
    int fen;
    QMediaPlayer * play;
    QMediaPlaylist*playlist;
    QTimer *pt_music;
};
#endif // MAINWINDOW_H
